/* ============================================================
   Porsche Website - Global Styles
   ============================================================ */

:root {
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --text: #0a0a0a;
  --text-muted: #6e6e73;
  --line: #d2d2d7;
  --pill-bg: #f0f0f2;
  --pill-border: #d2d2d7;
  --radius: 6px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

h1, h2, h3, h4 {
  font-weight: 700;
  letter-spacing: -0.01em;
}

:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
}

/* Shared base for content photos/videos: fills its box, crops to fit,
   rounded corners. Swap the file each <img src="..."> points to —
   the sizing is already handled here. */
.model-img, .stat-media, .highlight-tile, .feature-band-media,
.feature-item-media, .quad-media, .sustain-media, .recap-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: var(--radius);
  background: var(--bg-alt);
}


/* ============================================================
   Nav (overlaid on dark hero)
   ============================================================ */

#navbar.nav-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0));
  border-bottom: none;
  backdrop-filter: none;
}

.nav-overlay .nav-inner {
  max-width: none;
  padding: 22px 5vw;
  color: #fff;
  position: relative;
}

.menu-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  background: none;
  border: none;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

.menu-icon {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 20px;
}

.menu-icon span {
  display: block;
  height: 2px;
  background: #fff;
  border-radius: 2px;
}

.logo-word {
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.28em;
  color: #fff;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.nav-icons {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 16px;
  color: #fff;
}


/* ============================================================
   Hero
   ============================================================ */

.hero {
  position: relative;
  overflow: hidden;
}

header.hero {
  overflow: visible !important; /* allows the floating car image to bleed outside the section */
}

.hero-scene {
  position: relative;
  height: 60vh;
  min-height: 400px;
  background: #0a0b0d;
  overflow: hidden;
}

.hero-bg-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0.05) 60%, rgba(0, 0, 0, 0.35) 100%);
}

.hero-watermark {
  position: absolute;
  left: 50%;
  top: 46%;
  transform: translate(-50%, -50%);
  font-family: 'Kaushan Script', cursive;
  font-size: clamp(64px, 13vw, 190px);
  color: #c7cfdb;
  opacity: 0.28;
  white-space: nowrap;
  pointer-events: none;
  letter-spacing: 0.01em;
}

.hero-playpause {
  position: absolute;
  right: 5vw;
  bottom: 34px;
  z-index: 10;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 11px;
  backdrop-filter: blur(6px);
  cursor: pointer;
}

.hero-car-float {
  position: absolute;
  bottom: -55px; /* adjust to raise/lower the floating car */
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  width: 100%;
  max-width: 900px;
  pointer-events: none;
}

.hero-car-float img {
  width: 100%;
  height: auto;
  display: block;
}

.hero-copy {
  padding: 26px 10vw 0;
  display: flex;
  align-items: baseline;
  gap: 22px;
  flex-wrap: wrap;
  position: relative;
  z-index: 5;
}

.badge-row {
  display: flex;
  gap: 8px;
}

.badge {
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--pill-bg);
  border: 1px solid var(--pill-border);
  color: var(--text-muted);
}

.badge-dark {
  background: var(--text);
  color: #fff;
  border-color: var(--text);
}

.badge-row.small .badge {
  font-size: 11px;
  padding: 4px 10px;
}


/* ============================================================
   Model Card (hero-adjacent tabs/title/badges/actions block)
   ============================================================ */

.model-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 800px;
  margin: 40px auto;
  padding: 20px;
  text-align: center;
}

.tab-container {
  display: inline-flex;
  background-color: #f1f1f2;
  padding: 4px;
  border-radius: 12px;
  gap: 4px;
}

.model-title {
  font-size: 2.5rem;
  font-weight: 500;
  margin: 24px 0 12px 0;
  color: #000;
  letter-spacing: -0.5px;
}

.badges-container {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
}

.new-badge {
  background-color: #008700;
  color: #ffffff;
}

.tech-badge {
  background-color: #e5e7eb;
  color: #1f2937;
}

.actions-container {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}

.btn {
  padding: 12px 28px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: opacity 0.2s ease;
}

.btn:hover {
  opacity: 0.9;
}

.btn-primary {
  background-color: #000000;
  color: #ffffff;
}

.btn-secondary {
  background-color: #d1d5db;
  color: #000000;
}

.disclaimer {
  font-size: 12px;
  color: #888888;
  max-width: 600px;
  line-height: 1.5;
}


/* ============================================================
   Specs Section
   ============================================================ */

.specs-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 20px;
  align-items: center;
  width: 100%;
  position: relative;
}

@media (min-width: 768px) {
  .specs-container {
    grid-template-columns: 1fr 1fr;
  }
}

.specs-list {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.spec-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.prefix {
  font-size: 14px;
  color: #6b7280;
  margin-bottom: -4px;
}

.value-group {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.number {
  font-size: 42px;
  font-weight: 500;
  color: #000;
  line-height: 1.1;
}

.unit {
  font-size: 18px;
  font-weight: 600;
  color: #000;
}

.separator {
  font-size: 32px;
  color: #000;
  margin: 0 4px;
}

.description {
  font-size: 13px;
  color: #6b7280;
  margin-top: 6px;
  max-width: 380px;
  line-height: 1.4;
}

.sub-description {
  font-size: 12px;
  color: #6b7280;
  margin-top: 10px;
}

.sub-description a {
  color: #6b7280;
  text-decoration: underline;
}

.specs-image img {
  width: 100%;
  height: auto;
  object-fit: contain;
}


/* ============================================================
   Highlights Section (video)
   ============================================================ */

.highlights-section {
  width: 100%;
  text-align: center;
  padding: 40px 0;
  position: relative;
}

.highlights-title {
  font-size: 2rem;
  font-weight: 500;
  margin-bottom: 24px;
  color: #000;
}

.video-container {
  position: relative;
  width: 100%;
  height: 80vh;
  min-height: 480px;
  overflow: hidden;
  background-color: #000;
}

.bg-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
}

.video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0) 50%);
  pointer-events: none;
}

.video-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 0 40px 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #fff;
  z-index: 2;
}

.text-content {
  max-width: 600px;
  margin-bottom: 30px;
}

.item-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.item-desc {
  font-size: 0.85rem;
  color: #d1d5db;
  line-height: 1.4;
}

.tabs-bar {
  display: flex;
  width: 100%;
  max-width: 900px;
  gap: 20px;
  justify-content: center;
}

.tab-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.3s ease;
  align-items: flex-start;
}

.tab-item.active,
.tab-item:hover {
  opacity: 1;
}

.tab-item span,
.tab-label {
  font-size: 0.8rem;
  font-weight: 500;
}

.progress-line,
.progress-bar {
  width: 100%;
  height: 2px;
  background-color: rgba(255, 255, 255, 0.3);
  position: relative;
  overflow: hidden;
}

.tab-item.active .progress-line::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 100%;
  background-color: #fff;
}

.section-footer-note {
  font-size: 10px;
  color: #9ca3af;
  margin-top: 12px;
}


/* ============================================================
   Configurator Section
   ============================================================ */

.configurator-container {
  clear: both;
  display: block;
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 60px auto 40px;
  padding: 0 20px;
  box-sizing: border-box;
  text-align: center;
}

.title {
  font-size: 24px;
  font-weight: 400;
  margin-bottom: 30px;
  color: #111;
}

.main-layout {
  display: flex;
  flex-direction: row;
  gap: 30px;
  align-items: flex-start;
  margin-top: 20px;
}

@media (max-width: 768px) {
  .main-layout {
    flex-direction: column;
  }
}

.left-column {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.main-image-box {
  position: relative;
  background-color: #eee;
  border-radius: 12px;
  overflow: hidden;
}

.main-image {
  width: 100%;
  height: auto;
  display: block;
}

.thumbnails {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 5px;
}

.thumb {
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fff;
  padding: 4px;
  cursor: pointer;
  width: 60px;
  height: 40px;
  flex-shrink: 0;
}

.thumb.active {
  border: 2px solid #000;
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
}

.right-column {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.option-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 16px;
  text-align: left;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.option-card h3 {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 12px;
  color: #333;
}

.color-section {
  margin-bottom: 12px;
}

.swatches {
  display: flex;
  gap: 8px;
}

.swatch {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.1);
  cursor: pointer;
}

.swatch.active {
  outline: 2px solid #000;
  outline-offset: 2px;
}

.wheel-options {
  display: flex;
  gap: 8px;
}

.wheel-thumb {
  width: 40px;
  height: 40px;
  border: 1px solid #ddd;
  border-radius: 6px;
  cursor: pointer;
  background: #fff;
}

.configurator-footer {
  margin-top: 30px;
}

.configurator-footer p {
  font-size: 11px;
  color: #666;
  margin-bottom: 12px;
}

.cta-button {
  background-color: #000;
  color: #fff;
  border: none;
  padding: 10px 24px;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
  transition: background 0.2s;
}

.cta-button:hover {
  background-color: #333;
}


/* ============================================================
   Charging Section
   Final merged state after layout adjustments:
   background block is taller and the cards float lower over it,
   with room below so nothing gets clipped.
   ============================================================ */

.charging-section {
  width: 100%;
  position: relative;
  background-color: #ffffff;
  padding-top: 25px;
  padding-bottom: 300px; /* room below so the lowered cards don't clip the next section */
  box-sizing: border-box;
  overflow: visible; /* allow cards to visually extend past the section edge */
}

.charging-bg-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 700px; /* tall enough to sit behind the lowered cards */
  z-index: 1;
}

.charging-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.charging-bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.6) 0%,
    rgba(0, 0, 0, 0.2) 40%,
    rgba(0, 0, 0, 0.95) 85%,
    #000000 100%
  );
}

.charging-header {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto 30px auto;
  padding: 0 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.carousel-tabs {
  display: flex;
  gap: 6px;
  background: rgba(0, 0, 0, 0.4);
  padding: 4px;
  border-radius: 20px;
  backdrop-filter: blur(8px);
}

.charging-section .tab-btn {
  background: transparent;
  border: none;
  color: #aaaaaa;
  padding: 6px 16px;
  border-radius: 16px;
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.charging-section .tab-btn.active,
.charging-section .tab-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

.carousel-arrows {
  display: flex;
  gap: 12px;
}

.charging-section .arrow-btn {
  background: transparent;
  border: none;
  color: #aaaaaa;
  font-size: 16px;
  cursor: pointer;
  transition: color 0.2s;
}

.charging-section .arrow-btn:hover {
  color: #ffffff;
}

.charging-section .cards-container {
  position: relative;
  top: 220px; /* pushes the cards down so more of the background photo shows */
  z-index: 2;
  display: flex;
  align-items: flex-start;
  gap: 20px;
  overflow-x: auto;
  padding: 0 40px 20px 40px;
  cursor: grab;
  user-select: none;
  scroll-behavior: smooth;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.charging-section .cards-container::-webkit-scrollbar {
  display: none;
}

.charging-section .cards-container:active {
  cursor: grabbing;
}

.charging-section .cards-container .card {
  flex: 0 0 380px;
  width: 380px;
  height: 300px;
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background-color: #1a1a1a;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
  box-sizing: border-box;
}

.charging-section .cards-container .card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.charging-section .card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 55%;
  padding: 24px;
  box-sizing: border-box;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
}

.charging-section .card-overlay h3 {
  font-size: 18px;
  font-weight: 500;
  color: #ffffff;
  line-height: 1.35;
  margin: 0;
}

.charging-section .show-more {
  font-size: 11px;
  color: #aaaaaa;
  cursor: pointer;
}

.charging-bottom {
  position: relative;
  z-index: 2;
  background-color: #ffffff;
  padding: 20px 20px 40px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.charging-section .carousel-dots {
  display: flex;
  gap: 6px;
}

.charging-section .dot {
  width: 5px;
  height: 5px;
  background-color: #cccccc;
  border-radius: 50%;
}

.charging-section .dot.active {
  background-color: #000000;
}

.charging-section .disclaimer-text {
  font-size: 10px;
  color: #888888;
  max-width: 650px;
  line-height: 1.5;
  margin: 0;
}

.discover-btn {
  background: #000000;
  border: none;
  color: #ffffff;
  padding: 10px 24px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s;
}

.discover-btn:hover {
  background-color: #222222;
}


/* ============================================================
   Warranty Section
   ============================================================ */

.warranty-section {
  width: 100%;
  background-color: #ffffff;
  padding: 80px 20px;
  box-sizing: border-box;
}

.warranty-container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
}

.warranty-image-col {
  flex: 1;
  display: flex;
  justify-content: center;
}

.warranty-img {
  width: 100%;
  max-width: 500px;
  height: auto;
  object-fit: contain;
}

.warranty-content-col {
  flex: 1;
  max-width: 520px;
}

.warranty-title {
  font-size: 26px;
  font-weight: 600;
  color: #000000;
  margin-bottom: 24px;
  letter-spacing: -0.5px;
}

.warranty-text {
  font-size: 13px;
  line-height: 1.6;
  color: #333333;
  margin-bottom: 16px;
}

.warranty-note {
  display: block;
  font-size: 11px;
  color: #777777;
  margin-top: 24px;
}

@media (max-width: 768px) {
  .warranty-container {
    flex-direction: column;
    gap: 40px;
    text-align: left;
  }

  .warranty-content-col {
    max-width: 100%;
  }
}


/* ============================================================
   Performance Section
   ============================================================ */

.performance-section {
  width: 100%;
  background: linear-gradient(to bottom, #000000 80%, #ffffff 80%);
  padding-bottom: 40px;
  box-sizing: border-box;
}

.performance-hero {
  position: relative;
  width: 100%;
  background-color: #000000;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 20px;
}

.hero-img-wrapper {
  position: relative;
  width: 100%;
  height: 420px;
  overflow: hidden;
}

.hero-full-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-fade-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 180px;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, #000000 100%);
}

.hero-content {
  max-width: 750px;
  text-align: center;
  padding: 10px 20px 20px 20px;
  z-index: 2;
}

.hero-heading {
  font-size: 24px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 12px;
}

.hero-subtext {
  font-size: 12px;
  color: #cccccc;
  line-height: 1.6;
}

.hero-arrows {
  width: 100%;
  max-width: 1200px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 0 50px 10px 0;
  box-sizing: border-box;
}

.performance-section .arrow-btn {
  background: transparent;
  border: none;
  color: #888888;
  font-size: 16px;
  cursor: pointer;
  transition: color 0.2s ease;
}

.performance-section .arrow-btn:hover {
  color: #ffffff;
}

.performance-cards-container {
  display: flex;
  align-items: stretch;
  gap: 20px;
  overflow-x: auto;
  padding: 0 40px 20px 40px;
  cursor: grab;
  user-select: none;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.performance-cards-container::-webkit-scrollbar {
  display: none;
}

.performance-cards-container:active {
  cursor: grabbing;
}

.perf-card {
  flex: 0 0 320px;
  width: 320px;
  background-color: #f5f5f5;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

.performance-section .card-img-box {
  width: 100%;
  height: 220px;
  overflow: hidden;
  background-color: #ffffff;
}

.performance-section .card-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.card-info {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-grow: 1;
}

.card-info h3 {
  font-size: 15px;
  font-weight: 600;
  color: #000000;
  margin: 0;
}

.card-info p {
  font-size: 11px;
  color: #555555;
  line-height: 1.5;
  margin: 0;
}

.footnote {
  font-size: 10px;
  color: #888888;
  margin-top: auto;
  padding-top: 10px;
}

.performance-section .carousel-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 15px;
}

.performance-section .dot {
  width: 5px;
  height: 5px;
  background-color: #cccccc;
  border-radius: 50%;
}

.performance-section .dot.active {
  background-color: #000000;
}


/* ============================================================
   Usability Section
   ============================================================ */

.usability-section {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  overflow: hidden;
}

.usability-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 30px;
  text-align: left;
}

.usability-header h2 {
  font-size: 24px;
  color: #111111;
  margin-bottom: 10px;
}

.usability-header p {
  font-size: 13px;
  color: #666666;
  line-height: 1.6;
}

.usability-section .carousel-arrows {
  display: flex;
  gap: 10px;
}

.usability-section .arrow-btn {
  background: #222;
  color: #fff;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
}

.usability-section .arrow-btn:hover {
  color: #000000;
}

/* Full-bleed draggable carousel that breaks out of the max-width container */
#usabilityCarousel {
  display: flex;
  flex-wrap: nowrap;
  gap: 20px;
  overflow-x: auto;
  scroll-behavior: smooth;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  padding: 10px calc((100vw - 1200px) / 2 + 20px) 20px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

#usabilityCarousel::-webkit-scrollbar {
  display: none;
}

#usabilityCarousel .card {
  flex: 0 0 340px;
  height: 420px;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
}

#usabilityCarousel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

#usabilityCarousel.dragging {
  scroll-behavior: auto;
  cursor: grabbing;
}

@media (max-width: 1240px) {
  #usabilityCarousel {
    padding-left: 20px;
    padding-right: 20px;
  }
}


/* ============================================================
   Digital Experience Section (video tabs)
   ============================================================ */

.digital-exp-section {
  width: 100%;
  padding: 40px 0 20px 0;
  text-align: center;
}

.exp-header h2 {
  font-size: 28px;
  font-weight: 500;
  color: #111111;
  margin-bottom: 30px;
}

.exp-hero {
  position: relative;
  width: 100%;
  height: 520px;
  overflow: hidden;
  background-color: #000000;
}

.exp-bg-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
}

.exp-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.95) 0%,
    rgba(0, 0, 0, 0.3) 40%,
    rgba(0, 0, 0, 0) 100%
  );
  z-index: 1;
}

.exp-content {
  position: absolute;
  bottom: 90px;
  left: 10%;
  max-width: 420px;
  text-align: left;
  color: #ffffff;
  z-index: 2;
}

.exp-content h3 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
}

.exp-content p {
  font-size: 11px;
  color: #cccccc;
  line-height: 1.5;
  margin: 0;
}

.exp-tabs-container {
  position: absolute;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  max-width: 1100px;
  display: flex;
  align-items: center;
  gap: 20px;
  z-index: 2;
}

.exp-tabs {
  display: flex;
  flex: 1;
  gap: 20px;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background-color: #ffffff;
  transition: width 0.1s linear;
}

.play-pause-btn {
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 12px;
  cursor: pointer;
  opacity: 0.8;
  padding: 5px;
}

.play-pause-btn:hover {
  opacity: 1;
}

.exp-disclaimer {
  font-size: 10px;
  color: #888888;
  margin-top: 15px;
}


/* ============================================================
   Sound Section (hold to listen)
   ============================================================ */

.sound-section {
  position: relative;
  width: 100%;
  height: 600px;
  overflow: hidden;
  background-color: #000000;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 60px 20px 40px 20px;
  user-select: none;
}

.sound-bg-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.sound-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 40%;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 100%);
  z-index: 1;
}

.sound-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #ffffff;
  max-width: 800px;
}

.sound-content h2 {
  font-size: 32px;
  font-weight: 500;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.sound-content p {
  font-size: 14px;
  color: #dddddd;
  line-height: 1.5;
}

.sound-btn-container {
  position: relative;
  z-index: 2;
  margin-bottom: 20px;
}

.hold-sound-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background-color: #ffffff;
  color: #111111;
  border: none;
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.15s ease, background-color 0.15s ease, color 0.15s ease;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.hold-sound-btn:hover {
  background-color: #f2f2f2;
}

.hold-sound-btn.is-holding {
  background-color: #000000;
  color: #ffffff;
  transform: scale(0.96);
}

.btn-icon {
  font-size: 12px;
}


/* ============================================================
   Responsible Section (wide side-by-side cards)
   ============================================================ */

.responsible-section {
  width: 100%;
  padding: 60px 0 40px 0;
  position: relative;
}

.responsible-section .section-title {
  text-align: center;
  font-size: 28px;
  font-weight: 500;
  color: #111111;
  margin-bottom: 20px;
}

.arrows-container {
  max-width: 1100px;
  margin: 0 auto 15px auto;
  display: flex;
  justify-content: flex-end;
  gap: 15px;
  padding: 0 40px;
}

.responsible-section .arrow-btn {
  background: transparent;
  border: none;
  font-size: 18px;
  color: #888888;
  cursor: pointer;
  transition: color 0.2s ease;
}

.responsible-section .arrow-btn:hover {
  color: #000000;
}

.responsible-carousel {
  display: flex;
  gap: 30px;
  overflow-x: auto;
  padding: 10px 40px 30px 40px;
  cursor: grab;
  user-select: none;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.responsible-carousel::-webkit-scrollbar {
  display: none;
}

.responsible-carousel.dragging {
  cursor: grabbing;
  scroll-behavior: auto;
  scroll-snap-type: none;
}

.resp-card {
  flex: 0 0 750px;
  display: flex;
  align-items: center;
  gap: 30px;
  background-color: #f7f7f7;
  border-radius: 20px;
  overflow: hidden;
  scroll-snap-align: center;
}

.responsible-section .card-img-box {
  flex: 0 0 50%;
  height: 380px;
}

.responsible-section .card-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  border-radius: 20px 0 0 20px;
}

.card-info-box {
  flex: 1;
  padding: 30px 30px 30px 0;
  text-align: left;
}

.card-info-box h3 {
  font-size: 18px;
  font-weight: 600;
  color: #111111;
  line-height: 1.4;
  margin-bottom: 15px;
}

.card-info-box p {
  font-size: 12px;
  color: #666666;
  line-height: 1.6;
}

.dots-container {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 15px;
}

.dots-container .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #cccccc;
  transition: background-color 0.3s ease;
}

.dots-container .dot.active {
  background-color: #111111;
}

.btn-container {
  text-align: center;
  margin-top: 25px;
}

.learn-more-btn {
  background-color: #000000;
  color: #ffffff;
  border: none;
  padding: 12px 28px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.learn-more-btn:hover {
  background-color: #333333;
}

@media (max-width: 850px) {
  .resp-card {
    flex: 0 0 85vw;
    flex-direction: column;
  }

  .responsible-section .card-img-box {
    width: 100%;
    height: 250px;
  }

  .responsible-section .card-img-box img {
    border-radius: 20px 20px 0 0;
  }

  .card-info-box {
    padding: 20px;
  }
}


/* ============================================================
   Compare Models Section
   ============================================================ */

.compare-models-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 60px 20px;
  color: #111111;
}

.compare-models-section .section-title {
  text-align: center;
  font-size: 32px;
  font-weight: 500;
  margin-bottom: 30px;
}

.filter-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-bottom: 40px;
}

.compare-by-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.compare-label {
  font-size: 11px;
  color: #777777;
}

.toggle-buttons {
  display: inline-flex;
  border: 1px solid #cccccc;
  border-radius: 6px;
  overflow: hidden;
}

.toggle-btn {
  background: transparent;
  border: none;
  padding: 8px 16px;
  font-size: 11px;
  cursor: pointer;
  color: #333333;
}

.toggle-btn.active {
  background-color: #111111;
  color: #ffffff;
}

.category-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.filter-chip {
  background-color: #f2f2f2;
  border: 1px solid transparent;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
  color: #444444;
}

.filter-chip.active {
  background-color: #e6e6e6;
  border-color: #999999;
  color: #000000;
  font-weight: bold;
}

/* Grid gets top margin so the floating car images can bleed above the cards */
.models-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 60px;
  align-items: stretch;
}

.model-card {
  background-color: #f7f7f8;
  border-radius: 12px;
  border: 1px solid #e5e5e7;
  position: relative;
  overflow: visible; /* lets the car image float above the card edge */
  display: flex;
  flex-direction: column;
}

.card-img-wrapper {
  position: relative;
  margin-top: -50px; /* negative margin floats the car above the card */
  z-index: 5;
  width: 100%;
  padding: 20px 20px 0 20px;
  text-align: center;
}

.card-img-wrapper img {
  width: 100%;
  max-width: 320px;
  height: auto;
  max-height: 160px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 12px 10px rgba(0, 0, 0, 0.15));
}

.card-body {
  padding: 20px 24px 24px 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.model-name {
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 12px;
}

.tags-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 25px;
}

.tag {
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 4px;
}

.tag-green {
  background-color: #000000;
  color: #ffffff;
}

.tag-gray {
  background-color: #e5e5e7;
  color: #555555;
}

.spec-group {
  margin-bottom: 18px;
}

.spec-value {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 2px;
}

.spec-label {
  font-size: 10px;
  color: #777777;
  line-height: 1.3;
}

.energy-disclaimer {
  font-size: 9px;
  color: #888888;
  line-height: 1.4;
  margin-top: auto;
  margin-bottom: 15px;
}

.tech-link {
  font-size: 11px;
  color: #000000;
  text-decoration: underline;
  margin-bottom: 20px;
  display: inline-block;
}

.action-buttons {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

.compare-models-section .btn {
  flex: 1;
  padding: 10px 0;
  border-radius: 6px;
  font-size: 12px;
  font-weight: bold;
  cursor: pointer;
  border: none;
  text-align: center;
}

.compare-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #444444;
  cursor: pointer;
}

@media (max-width: 992px) {
  .models-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 650px) {
  .models-grid {
    grid-template-columns: 1fr;
  }
}


/* ============================================================
   Inspiration Section (asymmetric image grid)
   ============================================================ */

.inspiration-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 20px;
  color: #111111;
}

.inspiration-header {
  text-align: center;
  max-width: 750px;
  margin: 0 auto 50px auto;
}

.inspiration-header h2 {
  font-size: 30px;
  font-weight: 500;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.inspiration-header p {
  font-size: 13px;
  color: #555555;
  line-height: 1.6;
}

.inspiration-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  grid-template-rows: auto auto;
  gap: 24px;
  align-items: start;
}

.grid-item {
  border-radius: 16px;
  overflow: hidden;
}

.grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 16px;
}

.img-wheel {
  height: 260px;
}

.img-car {
  height: 380px;
  grid-row: span 1;
}

.img-interior {
  height: 260px;
}

.text-block {
  padding: 20px 20px 0 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.text-block h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
}

.text-block p {
  font-size: 12px;
  color: #666666;
  line-height: 1.6;
  margin-bottom: 24px;
}

.inspiration-section .discover-btn {
  background-color: #000000;
  color: #ffffff;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.1s ease;
}

.inspiration-section .discover-btn:hover {
  background-color: #333333;
}

.inspiration-section .discover-btn:active {
  transform: scale(0.98);
}

@media (max-width: 768px) {
  .inspiration-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .img-wheel, .img-car, .img-interior {
    height: 240px;
  }

  .text-block {
    padding: 10px 0;
  }
}


/* ============================================================
   Feature Cards Section (hover-zoom grid)
   ============================================================ */

.feature-cards-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  position: relative;
  height: 520px;
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.card-bg-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.card-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.feature-card:hover .card-bg {
  transform: scale(1.08);
}

.card-gradient {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 20%,
    rgba(0, 0, 0, 0.6) 60%,
    rgba(0, 0, 0, 0.95) 100%
  );
  z-index: 1;
}

.card-content {
  position: relative;
  z-index: 2;
  padding: 30px 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.card-content h3 {
  font-size: 22px;
  font-weight: 500;
  line-height: 1.3;
  margin-bottom: 12px;
  color: #ffffff;
}

.card-content p {
  font-size: 11px;
  color: #cccccc;
  line-height: 1.6;
  margin-bottom: 24px;
}

.card-btn {
  background-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.card-btn:hover {
  background-color: #ffffff;
  color: #000000;
  border-color: #ffffff;
}

.feature-card:hover .card-btn {
  border-color: rgba(255, 255, 255, 0.6);
}

@media (max-width: 992px) {
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 650px) {
  .cards-grid {
    grid-template-columns: 1fr;
  }

  .feature-card {
    height: 460px;
  }
}


/* ============================================================
   Feedback & Emissions Section
   ============================================================ */

.feedback-section {
  text-align: center;
  padding: 60px 20px 80px 20px;
}

.feedback-title {
  font-size: 14px;
  font-weight: 500;
  color: #111111;
  margin-bottom: 24px;
}

.rating-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.rating-label {
  font-size: 11px;
  color: #666666;
}

.rating-buttons {
  display: flex;
  gap: 6px;
}

.rating-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid #d1d1d6;
  background-color: #ffffff;
  color: #111111;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.rating-btn:hover {
  border-color: #111111;
  background-color: #f5f5f7;
}

.rating-btn.active {
  background-color: #000000;
  color: #ffffff;
  border-color: #000000;
}

.emissions-section {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 20px 80px 20px;
  text-align: center;
}

.emissions-title {
  font-size: 32px;
  font-weight: 500;
  margin-bottom: 40px;
  letter-spacing: -0.5px;
}

.emissions-text {
  font-size: 10px;
  color: #777777;
  line-height: 1.6;
  text-align: center;
}

.emissions-text strong {
  color: #444444;
  font-weight: 600;
}

@media (max-width: 600px) {
  .emissions-title {
    font-size: 24px;
  }

  .rating-container {
    flex-direction: column;
    gap: 10px;
  }
}

.feedback-btn {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%) rotate(-90deg);
  transform-origin: right bottom;
  background-color: #0066cc;
  color: #ffffff;
  border: none;
  padding: 6px 14px;
  font-size: 11px;
  font-weight: bold;
  cursor: pointer;
  z-index: 1000;
  border-radius: 4px 4px 0 0;
}


/* ============================================================
   Footer
   ============================================================ */

.porsche-footer {
  width: 100%;
  background-color: #000000;
  padding: 40px 0 20px 0;
  border-top: 1px solid #111111;
}

.footer-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

.scroll-top-box {
  text-align: center;
  margin-bottom: 40px;
}

.scroll-top-btn {
  background: none;
  border: none;
  color: #ffffff;
  cursor: pointer;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 11px;
}

.lang-box {
  margin-bottom: 35px;
}

.box-label {
  display: block;
  font-size: 10px;
  color: #777777;
  margin-bottom: 8px;
}

.lang-info {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}

.lang-name {
  font-weight: bold;
}

.change-link {
  color: #ffffff;
  text-decoration: underline;
  margin-left: 6px;
  font-size: 11px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 40px;
}

.col-head {
  font-size: 10px;
  color: #777777;
  margin-bottom: 14px;
}

.grid-col ul {
  list-style: none;
}

.grid-col li {
  margin-bottom: 8px;
}

.grid-col a {
  color: #ffffff;
  text-decoration: none;
  font-size: 11px;
  font-weight: bold;
}

.grid-col a:hover {
  text-decoration: underline;
}

.social-store-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  flex-wrap: wrap;
  gap: 20px;
}

.social-links {
  display: flex;
  gap: 16px;
}

.social-links a {
  color: #ffffff;
  font-size: 14px;
}

.store-buttons {
  display: flex;
  gap: 10px;
}

.store-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: #000000;
  border: 1px solid #333333;
  padding: 5px 12px;
  border-radius: 5px;
  color: #ffffff;
  text-decoration: none;
}

.store-btn i {
  font-size: 18px;
}

.store-btn small {
  display: block;
  font-size: 7px;
  color: #aaaaaa;
}

.store-btn strong {
  display: block;
  font-size: 11px;
}

.legal-box {
  border-top: 1px solid #1a1a1a;
  padding-top: 25px;
  margin-bottom: 30px;
}

.copy-text {
  font-size: 10px;
  color: #cccccc;
  margin-bottom: 10px;
}

.legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-bottom: 16px;
}

.legal-nav a {
  color: #ffffff;
  font-size: 9px;
  text-decoration: underline;
}

.porsche-footer .disclaimer-text {
  font-size: 8px;
  color: #666666;
  line-height: 1.5;
  margin-bottom: 8px;
}

.porsche-footer .disclaimer-text a {
  color: #ffffff;
}

.porsche-footer .disclaimer-text.highlight {
  color: #888888;
}

.brand-logo-box {
  text-align: center;
  padding-top: 10px;
}

.porsche-text {
  font-size: 36px;
  font-weight: 900;
  letter-spacing: 12px;
  color: #ffffff;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}